# -*- coding: utf-8 -*-
# @Time: 2022/4/29 13:46
# @Author: 发抖的小喵喵
# @Email: panyi_20210601@163.com
# @File: 潮豆解冻.py
# @Project: haixin
# @Software: PyCharm


from test_case.haixin.Method.Post import post_method


def revoke():
    """
    当支付失败时，收银台调用我们接口解冻潮豆
    :return:
    """
    url = "https://api-test.shwoody.com/ma/chiobeansOrder/revoke"

    data = {
        "shopId": "80101",
        "cashNo": "0007",   # 收款机号
        "saleNo": "2023041819233534454",   # 销售流水号
        # "userId": "1519954970022121472"
        "userId": "1632993249742426112"
    }

    response = post_method(data, url)
    print(response)


if __name__ == "__main__":
    revoke()
